package com.rpc.example.core;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 *
 *
 * @author Elvis
 * @version 1.0, 2022/11/9
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Header implements Serializable {
    /**
     * 2
     */
    private short magic;
    /**
     * 1
     */
    private byte serializeType;

    private byte requestType;
    /**
     * 8
     */
    private long requestId;
    /**
     * 4
     */
    private int dataLength;

}
